package com.yubest.shell.cmd;

import org.springframework.shell.standard.ShellComponent;
import org.springframework.shell.standard.ShellMethod;
import org.springframework.shell.standard.ShellOption;

/**
 * @Author hweiyu
 * @Description
 * @Date 2022/11/10 14:48
 */
@ShellComponent
public class HelloShell {

    @ShellMethod(value = "对客人说欢迎", key = "hello")
    public String hello(@ShellOption(help = "姓名") String name) {
        return "Hello, " + name;
    }
}
